

import java.util.Collections;
import java.util.Vector;

public class Keil1 {
    public static void main(String[] args) {
        Integer[]a = new Integer[]{4,64,23,65,2,75,5355,434,};
        Vector<Integer> vector = new Vector<>();
        Collections.addAll(vector,a);
        //集合排序
        Collections.sort(vector);
        for (Integer integer:vector) {
            System.out.println(integer+",");
        }
        System.out.println();
        //降序排序
        Collections.reverse(vector);
        for (Integer integer:vector) {
            System.out.println(integer+",");
        }
        System.out.println();
        //随机排序

    }
}
